import 'package:plugin_platform_interface/plugin_platform_interface.dart';

import 'aikit_plugin_method_channel.dart';

abstract class AikitPluginPlatform extends PlatformInterface {
  /// Constructs a AikitPluginPlatform.
  AikitPluginPlatform() : super(token: _token);

  static final Object _token = Object();

  static AikitPluginPlatform _instance = MethodChannelAikitPlugin();

  /// The default instance of [AikitPluginPlatform] to use.
  ///
  /// Defaults to [MethodChannelAikitPlugin].
  static AikitPluginPlatform get instance => _instance;

  /// Platform-specific implementations should set this with their own
  /// platform-specific class that extends [AikitPluginPlatform] when
  /// they register themselves.
  static set instance(AikitPluginPlatform instance) {
    PlatformInterface.verifyToken(instance, _token);
    _instance = instance;
  }

  Future<String?> getPlatformVersion() {
    throw UnimplementedError('platformVersion() has not been implemented.');
  }
  Future<String?> initSDK(String APPID,String APIKEY,String APISECRET) {
    throw UnimplementedError('platformVersion() has not been implemented.');
  }
  Future<String?> startRecord(String keyword) {
    throw UnimplementedError('platformVersion() has not been implemented.');
  }
  Future<String?> stopRecord() {
    throw UnimplementedError('platformVersion() has not been implemented.');
  }
  Stream<TransResult> onResult() {
    throw UnimplementedError('platformVersion() has not been implemented.');
  }
}
